package com.eagle.view.widget.base;

import android.content.Context;
import android.graphics.Typeface;
import android.support.v7.widget.AppCompatButton;
import android.util.AttributeSet;

/**
 * Created by gc on 2017/1/6.
 */
public class EButton extends AppCompatButton {
    public EButton(Context context) {
        super(context);
        initFont(context);
    }

    public EButton(Context context, AttributeSet attrs) {
        super(context, attrs);
        initFont(context);
    }

    public EButton(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        initFont(context);
    }

    private void initFont(Context context) {
        this.setTypeface(Typeface.createFromAsset(context.getAssets(), "NotoSans-Regular.ttf"));
    }
}
